@extends('app')
@section('content')
    <div class="page">
        <div class="header">“水榭香堤”第一届业主委员会投票系统</div>
        <div class="scsm">请上传本人真实照片.姓名信息，参与投票！</div>
        @include('_errors')
        <form class="form-horizontal" method="POST" action="{{ url('votes/' . $vote->id) }}" enctype="multipart/form-data">
            <input type="hidden" name="_method" value="PUT">
            <input type="hidden" name="_token" value="{{ csrf_token() }}">
            <div class="shangchuan">
                <p><input name="title" type="text" class="wbk" value="{{ $vote->title }}" placeholder="请输入您的姓名"/></p>
                <p><input name="content" type="text" class="wbk" value="{{ $vote->content }}" placeholder="请输入您的联系方式"/></p>
                <div class="tpal" style="padding: 0 0 10px 0;"><a href="{{ url('votes/create') }}"><img src="{{ $vote->img_src ? asset($vote->img_src) : asset('web/images/tp.jpg') }}" width="100%" /></a></div>
                <p><label class="file-box">上传头像<input title="浏览文件" type="file" name="img" /></label></p>
                <p><input name="" type="submit" value="确认上传" class="tijiao" /></p>
            </div>
        </form>
    </div>
@endsection
